﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.vo;
using Business.dao;

namespace Business.bo
{
    public class SponsorBo : BaseBo
    {

        public Sponsor GetById(Int32 id)
        {
            SponsorDao sponsorDao = new SponsorDao();

            Sponsor sponsor = sponsorDao.GetById(id);

            return sponsor;
        }

        public IList<Sponsor> GetAll()
        {
            SponsorDao sponsorDao = new SponsorDao();

            IList<Sponsor> sponsors = sponsorDao.GetAll();

            return sponsors;
        }

        public IList<Sponsor> GetAllNames()
        {
            SponsorDao sponsorDao = new SponsorDao();

            IList<Sponsor> sponsors = sponsorDao.GetAllNames();

            return sponsors;
        }

        public void Save(Sponsor sponsor)
        {
            SponsorDao sponsorDao = new SponsorDao();
            sponsorDao.Save(sponsor);
        }

        public void Delete(Int32 id)
        {
            SponsorDao sponsorDao = new SponsorDao();
            sponsorDao.Delete(id);
        }

      
    }
}
